import { get, post, put } from "../utils/request";

/**
 * 获取用户信息
 * @returns
 */
export const loadUserInfoAPI = () => get("/api/v1/user/info");

/**
 * 签到
 * @returns
 */
export const checkInApi = () => post("/api/v1/user/check_in");

/**
 * 修改个人信息
 * @param {*} data
 * @returns
 */
export const modifyInfo = (data) => put("/api/v1/user/modify", data);

/**
 * 修改密码
 * @param {*} data
 * @returns
 */
export const modifyPwd = (data) => put("/api/v1/user/update_pwd", data);
